<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<!--chiptrack:checkLogon sourcePage="/changeOrders.do?isSample=1"/ -->

<%@ page import="java.util.ArrayList,
                 com.scalar.chiptrack.utils.ConfigManager,
                 com.scalar.chiptrack.users.Functionality,
                 com.scalar.chiptrack.users.User,
                 com.scalar.chiptrack.sales.Orders"%>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR>

<script language="javascript">

function searchFab(){
    document.fabReleaseSearchForm.action = "<%=chipTracContext%>/fabReleaseSearch.do?action=SearchFabRelease"
    document.fabReleaseSearchForm.submit();
}

function createFabRelease() {
    document.fabReleaseSearchForm.action = "<%=chipTracContext%>/fabRelease.do?action=new"
    document.fabReleaseSearchForm.submit();
}

</script>

</HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">


<!-- Top Header Start-->

<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@ include file="/jsp/operations/releaseMenu.jsp" %>

<!-- end of the side navigations -->

</TD>

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<!-- from here your body starts -->

<center><span class="NArialW">Fab Release Search</span></center>




<html:form name="fabReleaseSearchForm" method="post" action="/fabReleaseSearch" scope="request" type="com.scalar.chiptrack.operations.release.forms.FabReleaseSearchForm">

<table border="0" width="95%" align="center">

<tr><td>
<table border="0" width="90%" align=center>
    <tr>
        <td>
        <table border="0" width="100%" align=right>
            <tr><td colspan='5' align="left" class='NArialL'><FONT id="errors1" color='FF0000'></FONT></td></tr>
            <tr><td colsapn=6><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>

            <tr>
                <td width="22%"><font class="NArialL">Part Number</font></td>
                <td width="22%">
                    <html:select name="fabReleaseSearchForm" property="partNumber" styleClass="txfield">
                        <html:option value="">--Select--</html:option>
                        <html:options collection="partNumberList" property="label" labelProperty="label"/>
                    </html:select>
                </td>
                <td width="10%"><font class="NArialL">&nbsp;</font></td>
                <td width="22%"><font class="NArialL">Vendor</font></td>
                <td width="22%">
                    <html:select name="fabReleaseSearchForm" property="vendorName" styleClass="txfield">
                        <html:option value="">--Select--</html:option>
                        <html:options collection="vendorList" property="label" labelProperty="label"/>
                    </html:select>
                </td>
            </tr>

            <tr>
                <td width="22%"><font class="NArialL">Status</font></td>
                <td width="22%">
                    <html:select name="fabReleaseSearchForm" property="status" styleClass="txfield">
                        <html:option value="">--Select--</html:option>
                        <html:options collection="statusList" property="value" labelProperty="label"/>
                    </html:select>
                </td>
                <td width="10%"><font class="NArialL">&nbsp;</font></td>
                <td width="22%"><font class="NArialL">Year</font></td>
                <td width="22%">
                    <html:select name="fabReleaseSearchForm" property="year" styleClass="txfield">
                        <html:option value="">--Select--</html:option>
                        <html:options collection="yearList" property="value" labelProperty="label"/>
                    </html:select>
                </td>
            </tr>

        </table>
        </td>
    </tr>

    <tr>
      <td colspan=5 align=left>
          <br>
          <font class="NArialL">
          <a href="<%=chipTracContext%>/fabRelease.do?action=new"  onmouseover="window.status='Click here to create new Fab release';return true" onmouseout="window.status='';return true" title="Click here to create new Fab release" >Click here to create new Fab release</a>
          </font>
      </td>
    </tr>

    <tr>
      <td colspan=5 align=center>
          <br>
          <input type=image border="0" src="<%=chipTracContext%>/jsp/includes/images/search.gif" width="53" height="17" onmouseover="window.status='Click here to Search for Fab Release';return true" onclick="javascript:searchFab()" onmouseout="window.status='';return true" title="Click here to Search for Fab Release List">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <a href=""><img border="0" src="<%=chipTracContext%>/jsp/includes/images/reset.gif" width="53" height="17"  onmouseover="window.status='Click to Reset';return true" onmouseout="window.status='';return true" title="Click here to Reset" ></a>
      </td>
    </tr>

</table>
</td></tr>

<tr><td><br>
<logic:equal name="showList" value="TRUE">

<table border="0" width="100%" bordercolor="#FFFFFF" align=center>
    <tr>
	  <td width="20%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Fab Release #</font></td>
	  <td width="20%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Vendor</font></td>
	  <td width="20%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Part Number</font></td>
	  <td width="10%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Status</font></td>
	  <td width="30%" align="center" bgcolor="#993333"><font class="NArialL"><font color="#FFFFFF">Actions</font></td>
	</tr>

    <% int bgcount = 0; %>
    <logic:iterate id="FabRelease" name="fabReleaseList">
        <% bgcount = bgcount + 1; %>
        <tr>
            <td width="20%" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>>
            <font class="NArialL"><bean:write name="FabRelease" property="fabReleaseNo" /></font>
            </td>
            <td width="20%" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>>
            <font class="NArialL"><bean:write name="FabRelease" property="vendorName" /></font>
            </td>
            <td width="20%" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>>
            <font class="NArialL"><bean:write name="FabRelease" property="partNumber" /></font>
            </td>
            <td width="10%" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>>
            <font class="NArialL"><bean:write name="FabRelease" property="status" /></font>
            </td>
            <td width="30%" <%if(bgcount%2==0){%> bgcolor='#DEE1E2' <% } else {%> bgcolor='#FFFFEE' <%}%>>
            <font class="NArialL"><a href="<%=chipTracContext%>/fabRelease.do?action=view&fabReleaseId=<bean:write name="FabRelease" property="fabReleaseId" />">View</a></font>
            &nbsp;&nbsp;
            <font class="NArialL"><a href="<%=chipTracContext%>/fabRelease.do?action=edit&fabReleaseId=<bean:write name="FabRelease" property="fabReleaseId" />">Modify</a></font>
            &nbsp;&nbsp;
            <font class="NArialL"><a href="<%=chipTracContext%>/fabRelease.do?action=approved&fabReleaseId=<bean:write name="FabRelease" property="fabReleaseId" />">Approve</a></font>
            </td>
        </tr>
    </logic:iterate>
    
</table>

</logic:equal>
</td></tr>

</table>

</html:form>






<!-- till here -->



<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->

</BODY>
</HTML>
